#ifndef BAR3D_H
#define BAR3D_H

#include <qwt3d_plot.h>

class Bar3D : public Qwt3D::VertexEnrichment
{
public:
    Bar3D();
    Bar3D( double rad, double level );

    Qwt3D::Enrichment* clone() const { return new Bar3D( *this ); }

    void configure( double rad, double level );
    void drawBegin();
    void drawEnd();
    void draw( Qwt3D::Triple const & triple );

    bool useMesh;

  private:
    double level_, radius_;
    double diag_;
};

#endif // BAR3D_H
